<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // var list = [1, 2, 3, 4];
      // list.splice(1, 3);
      // console.log(list);

      // var list = [1, 2, 3, 4];
      // console.log(list.join(''));
      // console.log(list.toString());

      var a = [1, 2];
      var b = [3, 4];
      var ab = b.concat(a);
      console.log(ab);
      console.log(a, b);
    </script>
  </body>
</html>
